package com.blog.service.impl;

import com.blog.mapper.BlogusersMapper;
import com.blog.pojo.Blogusers;
import com.blog.service.BlogusersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: VE
 * @DATE: 2022/10/11 15:33
 * 描述:
 */
@Service
public class BlogusersServiceImpl implements BlogusersService {

    @Autowired
    private BlogusersMapper blogusersMapper;
    @Override
    public Object insert(Blogusers blogusers) {
        return null;
    }

    @Override
    public Object delete(int id) {
        return null;
    }

    @Override
    public Object update(Blogusers blogusers) {
        return null;
    }

    @Override
    public Blogusers load(int id) {
        return blogusersMapper.load(id);
    }

    @Override
    public boolean register(Blogusers blogusers) {
        blogusersMapper.insert(blogusers);
        return true;
    }

    @Override
    public Blogusers checkUphone(String uphone) {
        return blogusersMapper.checkUphone(uphone);
    }

    @Override
    public List<Blogusers> findBigUser() {
        return blogusersMapper.findBigUser();
    }

    @Override
    public int findAttentionNum(Integer uid) {
        return blogusersMapper.findAttentionNum(uid);
    }

    @Override
    public int findFansNum(Integer uid) {
        return blogusersMapper.findFansNum(uid);
    }

    @Override
    public int findCollNum(Integer uid) {
        return blogusersMapper.findCollNum(uid);
    }

    @Override
    public List<Blogusers> findAttentUser(Integer uid) {
        return blogusersMapper.findAttentUser(uid);
    }

    @Override
    public List<Blogusers> findFansUser(Integer uid) {
        return blogusersMapper.findFansUser(uid);
    }

    @Override
    public Blogusers login(String uphone) {
        return blogusersMapper.login(uphone);
    }
}
